package com.chaihu.jpaDemo.modules.system.service.impl;

import com.chaihu.jpa.repository.BaseRepository;
import com.chaihu.jpa.service.impl.BaseServiceImpl;
import com.chaihu.jpaDemo.modules.system.repository.OperateLogRepository;
import com.chaihu.jpaDemo.modules.system.entity.OperateLog;
import com.chaihu.jpaDemo.modules.system.service.OperateLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 描述:
 * 作者: qinzhw
 * 创建时间: 2018/7/12 10:08
 */
@Service
public class OperateLogServiceImpl extends BaseServiceImpl<OperateLog,Long> implements OperateLogService {

	@Autowired
	private OperateLogRepository operateLogRepository;

	@Override
	public BaseRepository<OperateLog, Long> getBaseRepository() {
		return  operateLogRepository;
	}

	@Override
	public int deleteByIdIn(List<Long> ids) {
		return operateLogRepository.deleteByIdIn(ids);
	}
}